package com.tanhua.model.mongo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.bson.types.ObjectId;
import org.springframework.data.mongodb.core.mapping.Document;

import java.io.Serializable;

/**
 * @author Xiao
 * @version 1.0
 * @description 视频评分实体类
 * @date 2021/11/6
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@Document(collection = "recomment_video_score")
public class VideoScore implements Serializable {
    private static final long serialVersionUID = 1L;
    private ObjectId id;
    private Long userId;// 用户id
    private Long videoId; //视频id(对应视频表vid)，需要转化为Long类型 video中的vid字段
    private Double score; //得分
    private Long date; //时间戳
}
